/**
 */
define(function (require, exports, module) {
    'use strict';
    var ajax = require("resource/js/component/ajax.js");
    exports.loadCombox=function(param){
    		var fn = param.fn;
    		var sny=param.sny;
    		var url = '/base/authoriza/conmonData/queryData.htm';
    		if(!(sny==false)){
    			sny=true;
    		}
    		if(param.hasOwnProperty("urlPath") && param.urlPath){
    			url=param.urlPath;
    		}
    		var editable=false;
			if(param.hasOwnProperty("editable") && param.editable){
				editable = param.editable;
			}
    		var conf = {    
        		    valueField:'id',    
        		    textField:'text' , 
        		    editable:editable
        		};
    		if(param.hasOwnProperty("valueField")&&param.hasOwnProperty("textField")){
    			
    			conf = {    
            		    valueField:param.valueField,    
            		    textField:param.textField,
            		    editable:editable
            		};
    		}
    		if(param.exConf){
    			$.extend(true,conf,param.exConf);
    		}
    		$(param.id).combobox(conf); 
    		
    		var tmp = ajax.init();
    		tmp.success(function(code,msg,data){
    			$(param.id).combobox("loadData",data);
    			if(fn){
    				fn(data);
    			}
    		}).post(BASEPATH+url,{queryId:param.queryId,param:param.param},sny);
    }
});